'use strict';
const db = uniCloud.database() //对数据库的对象获取；

exports.main = async (event, context) => {
    const collection = db.collection('record-list') //对record-list数据库的获取；
    // 删除
    let res = await collection.where({
			"_id": event._id
		}).remove()
 
    return {
    	code: 200,
    	message: 'ok',
    	data: event
    }
}
// 删除选择的龟